package data.reader;

import java.util.ArrayList;

public class WeaponTableReader extends GenericFileReader<String[]>
{

	public WeaponTableReader(String file)
	{
		super(file);
	}

	public String[][] getTable()
	{
		String[][] res = new String[list.size()][list.get(0).length];
		for (int i = 0; i < list.size(); i++)
			res[i] = list.get(i);

		return res;
	}

	@Override
	public ArrayList<String[]> get()
	{

		return list;
	}

	@Override
	protected String[] newInstance(String row)
	{
		String[] res = row.split(";");
		return res;
	}

}
